package domain;
/*
设计思想
（1）属性：用户名字、登录密码、使用的当前文件、使用的当前文件夹
 */

public class User {
    //用户名字
    private String username;
    //登录密码
    private String password;
    //表示当前用户使用哪个文件夹
    private Directory currentDirectory;
    //表示当前用户使用哪个文件
    private File currentFile;
    //用户的根目录
    private Directory userDirectory;

    public User(String username, String password) {
        this.username = username;
        this.password = password;
        this.currentDirectory = null;
        this.currentFile = null;
        this.userDirectory = null;
    }

    //如下是get和set方法
    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Directory getCurrentDirectory() {
        return currentDirectory;
    }

    public void setCurrentDirectory(Directory currentDirectory) {
        this.currentDirectory = currentDirectory;
    }

    public File getCurrentFile() {
        return currentFile;
    }

    public void setCurrentFile(File currentFile) {
        this.currentFile = currentFile;
    }

    public Directory getUserDirectory() {
        return userDirectory;
    }

    public void setUserDirectory(Directory userDirectory) {
        this.userDirectory = userDirectory;
    }
}
